#! /usr/bin/env sh

echo "Start to update ........"

git stash

git clean -fd

# 获取分支
branch=`git branch | grep "*"`
# 截取分支名
currBranch=${branch:2}
echo $currBranch

git pull origin $currBranch

npm i
npm run build

echo "Success!!!!"

